﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectCompanyToBlackList.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.SelectCompanyToBlackList" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>选择企业到黑名单</title>
    <base target="_self" />
    <link rel="stylesheet" type="text/css" href="../Style/global.css" />

    <script type="text/javascript" src="../Scripts/Common.js"></script>

    <script type="text/javascript" src="../Scripts/global.js"></script>

    <script type="text/javascript" src="../Scripts/jquery.js"></script>

    <script type="text/javascript" src="../Scripts/MainListSelect.js"></script>
    
    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    
    <script src="../Scripts/PCASClass.js" type="text/javascript" ></script>   
    
    <script src="../Scripts/jquery.validate.js" type="text/javascript"></script>
    
    <script src="../Scripts/localization/messages_cn.js" type="text/javascript"></script> 
    
    <script type="text/javascript">
        $().ready(function() {
            $("form").validate();
        });
    
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="listctrl" style="text-align: left">
        <table>
            <tr>
               <td>
                    企业名称：
               </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                     <asp:Button ID="btnSearch" runat="server" Text="查询" CssClass="btn" onclick="btnSearch_Click" 
                       />
                </td>
            </tr>
        </table>
    </div>
    <div style="text-align: left">
    
        <asp:GridView ID="gvwCompany" runat="server" AutoGenerateColumns="false" EmptyDataText="暂无符合条件的数据！"
            Width="100%" CssClass="mainlist">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input id="chkAllCompany" name="chkAll" type="checkbox" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <input id="chkCompany" name="chkCompany" type="checkbox" value='<%# Eval("CompanyName") %>'>
                        </input>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="企业名称">
                    <ItemTemplate>
                          <%# Eval("CompanyName") %> 
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        
        </div>
     <div class="page">
    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" 
             onpagechanged="AspNetPager1_PageChanged" >
    </webdiyer:AspNetPager>
    </div>
    <br />
    添加到黑名单原因：<asp:TextBox ID="txtReason" Width="300px" Height="50px" CssClass="required" TextMode="MultiLine" runat="server"></asp:TextBox>
                      <span style="color: Red; font-size: 14px;">*</span>
    <div class="listctrl" style="text-align: left">
        <asp:Button CssClass="btn" ID="btnAdd" runat="server" Text="确定添加" OnClientClick="if(getcheckcount('请至少选择一个要添加到黑名单的企业')){ return confirm('确定要将所选企业添加到黑名单吗？');} return false;"
            onclick="btnAdd_Click" />
        <input id="Button1" type="button" onclick="openner=null;window.close();" value="取消"
            class="btn" />
    </div>
    </form>
</body>
</html>
